/*
 * Project1Main.cpp
 *
 * Copyright 2012 Fabian Wenzelmann, Nikolaus Mayer
 *
 * This file is part of ss12-gtprojects.
 *
 * ss12-gtprojects is free software: you
 * can redistribute it and/or modify it under the terms of the
 * GNU General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * ss12-gtprojects is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ss12-gtprojects.
 *
 * If not, see <http://www.gnu.org/licenses/>.
 */

#include "NFGParser.h"

#include <string>
#include <iostream>
#include <fstream>

int main(int argc, char** argv) {

    if (argc != 2) {
        std::cout << "FUUU" << std::endl;
        return 1;
    }

    std::ifstream in;
    in.open(argv[1]);

    NFGParser parser;

    std::string content;
    std::string line;
    while (getline(in, line)) {
        content += line;
        content += '\n';
    }

    std::cout << content << std::endl;
    parser.parseGame(content);

    in.close();

    return 0;
}
